package com.lay.reggie;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@ServletComponentScan   //扫描 filter
@EnableTransactionManagement   //开启事务注解
@Slf4j    //日志
@EnableCaching   //开启缓存
@SpringBootApplication
public class LayReggieApplication {

    public static void main(String[] args) {
        SpringApplication.run(LayReggieApplication.class, args);

        // 记录日志
        log.info("项目运行成功。。。");
    }

}
